//
//  AppInstruction.h
//  XPhoto
//
//  Created by sentinel on 2020/4/3.
//  Copyright © 2020 baboy. All rights reserved.
//

#import <BKKit/BKKit.h>
#import <BKKit/Model.h>

#define API_INSTRUCTION_SEARCH_BY_KEY   @"instruction_get"
#define APP_INSTRUCTION_SERIAL_KEY      @"serial_instruction"

NS_ASSUME_NONNULL_BEGIN
@class AppInstructionSearchArgs;

@interface AppInstruction : Model
@property(nonatomic, strong) NSString *module;
@property(nonatomic, strong) NSString *key;
@property(nonatomic, strong) NSString *text;
@property(nonatomic, strong) NSString *zh;
@property(nonatomic, strong) NSString *en;

- (NSString *)lang:(NSString *)lang;

+ (id)searchWithKey:(NSString *)key
           callback:(void(^)(id task, id response, NSError *error))callback;
@end

@interface AppInstructionSearchArgs : Model
@property(nonatomic, strong) NSString *module;
@property(nonatomic, strong) NSString *key;
@end
NS_ASSUME_NONNULL_END
